﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace UpdateProgram
{
    internal static class Program
    {
        [STAThread]
        /// <summary>
        /// 主程序入口
        /// </summary>
        /// <param name="args"></param>
        private static void Main(string[] args)
        {
            string[] theArgs = Environment.GetCommandLineArgs();//通过System.Environment类来获取命令行参数

            //foreach处理
            foreach (string Arg in theArgs)
            {
                Console.WriteLine("Arg:{0}", Arg);
            }
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm(""));
        }
    }
}